﻿using System;
class RectangleArea
{
    static void Main()
    {
        int rectangleheight;
        int rectanglewidth;
        Console.Write("Input height: ");
        while (true)
        {
            try
            {
                rectangleheight = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter height:");
            }
        }
        Console.Write("Input width: ");
        while (true)
        {
            try
            {
                rectanglewidth = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter width:");
            }
        }
        int rectanglearea = rectangleheight * rectanglewidth;
        Console.WriteLine("Rectangle area is: {0}", rectanglearea);
        Console.ReadLine();
    }
}

